define(function (require,exports,module) {
    var routerComponent = {
        login:function (resolve) {require.async(['charity/js/modules/login.js'],resolve);},
        list:function (resolve) {require.async(['charity/js/modules/list.js'],resolve);},
        details:function (resolve) {require.async(['charity/js/modules/details.js'],resolve);}
    };
    var router = [
        { path: '/', redirect: '/login'},
        {
            path: '/login',
            name: 'login',
            component:routerComponent.login,
            meta:{title:"登录",keepAlive: true}
        },
        {
            path: '/list',
            name: 'list',
            component:routerComponent.list,
            meta:{title:"列表",keepAlive: true,mustLogin:true}
        },
        {
            path: '/details',
            name: 'details',
            component:routerComponent.details,
            meta:{title:"详情",keepAlive: true,mustLogin:true}
        }
    ];
    exports.router = router;
})